package io.gitee.thinkbungee.annotation.condition;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 * 是否激活某个组件
 *
 * @author chenyichang
 * @since 2022/5/27
 */
@Target(ElementType.TYPE)
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Conditional(OnComponentCondition.class)
public @interface ConditionOnComponent {

    /**
     * 要激活的组件名
     */
    String value();
}
